<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    $(function() {
        $('#appBaseEditForm').form({
            url : '${path }/appBase/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                }
            }
        });
    });

</script>
<div style="padding: 3px;">
    <form id="appBaseEditForm" method="post">
        <table class="grid">
            <tr>
                <td>数据类型</td>
                <td>
                    <input name="id" type="hidden"  value="${appBase.id}" >
                    ${appBase.type}
                </td>
                <td>删除</td>
                <td>
                    <select name="delFlag" class="easyui-combobox" readonly="readonly" data-options="width:140,height:29,editable:false,panelHeight:'auto'">
                        <option value="0">否</option>
                        <option value="1">是</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>数据key</td>
                <td>${appBase.key}</td>
                <td>数据值</td>
                <td>${appBase.value}></td>
            </tr>
            <tr>
                <td>百分比</td>
                <td><input name="percentage" type="text" placeholder="请输入百分比" class="easyui-validatebox" data-options="required:true" value="${appBase.percentage}"></td>
            </tr>
        </table>
    </form>
</div>